package com.caiyigo.baihua.service;

import java.util.List;

import com.caiyigo.baihua.dto.UserDto;
import com.caiyigo.baihua.model.SystemUser;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

/**
 * @author caihaihui
 * 
 */
public interface UserService {
	int deleteByPrimaryKey(Integer id);

	int insert(SystemUser record);

	int insertSelective(SystemUser record);

	SystemUser selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(SystemUser record);

	int updateByPrimaryKey(SystemUser record);

	List<SystemUser> list();

	int changeStaus(Integer id, Integer status);

	boolean batchDelete(String[] ids);

	boolean batchGrant(Integer[] role_ids, String uids);

	boolean grant(Integer[] role_ids, Integer userId);

	SystemUser selectByName(String name);

	List getUserList(UserDto user, PageBounds pageBounds);
}
